package com.micro.frog.fortune.sdk.cwl.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jason.lv
 * @since 2022/2/22 10:50
 */
@NoArgsConstructor
@Data
public class CwlApiResp {

    @JsonProperty("state")
    private Integer state;
    @JsonProperty("message")
    private String message;
    @JsonProperty("pageCount")
    private Integer pageCount;
    @JsonProperty("countNum")
    private Integer countNum;
    @JsonProperty("Tflag")
    private Integer tflag;
    @JsonProperty("result")
    private List<ResultDTO> result;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {

        @JsonProperty("name")
        private String name;
        @JsonProperty("code")
        private String code;
        @JsonProperty("detailsLink")
        private String detailsLink;
        @JsonProperty("videoLink")
        private String videoLink;
        @JsonProperty("date")
        private String date;
        @JsonProperty("week")
        private String week;
        @JsonProperty("red")
        private String red;
        @JsonProperty("blue")
        private String blue;
        @JsonProperty("blue2")
        private String blue2;
        @JsonProperty("sales")
        private String sales;
        @JsonProperty("poolmoney")
        private String poolMoney;
        @JsonProperty("content")
        private String content;
        @JsonProperty("addmoney")
        private String addMoney;
        @JsonProperty("addmoney2")
        private String addMoney2;
        @JsonProperty("msg")
        private String msg;
        @JsonProperty("z2add")
        private String z2add;
        @JsonProperty("m2add")
        private String m2add;
        @JsonProperty("prizegrades")
        private List<PrizegradesDTO> prizeGrades;

        @NoArgsConstructor
        @Data
        public static class PrizegradesDTO {

            @JsonProperty("type")
            private Integer type;
            @JsonProperty("typenum")
            private String typenum;
            @JsonProperty("typemoney")
            private String typemoney;
        }
    }
}
